Component({
    options:{
        styleIsolation:'isolated'
    },
    properties:{
        list:{
            type:Array,
            value:""
        },
        active:{
            type:Number,
            value:0
        }
    },
    lifetimes: {
        
    },
    methods: {
        change_tab_index(e){
            let { index, item } = e.currentTarget.dataset;
            if(index !== this.data.active){
                this.triggerEvent("change", item.value );
                this.setData({
                    "active":index
                })
            }
        }
    },
})
